﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Robin.Domain.Entities;
using Robin.NHibernate.EntityMappings;

namespace Smart.Project.Data
{
    public class MTagMap : EntityMap<MTag, string>
    {
        public MTagMap() : base("PM_TAG")
        {
            Id(x => x.Id);
            Map(x => x.NAME);
            Map(x => x.ALIASNAME);
            References(o => o.PROJECT).Not.LazyLoad().Column("PROJECTID");
        }
    }
    /// <summary>
    /// 部门
    /// </summary>
    public class MTag : Entity<string>
    {
        /// <summary>
        /// 标签名
        /// </summary>
        public virtual string NAME { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        public virtual string ALIASNAME { get; set; }
        /// <summary>
        /// 项目ID
        /// </summary>
        public virtual MProjectinfo PROJECT { get; set; }
    }

}
